package com.zxk.demo.mybatis;

/**
 * @description:
 * @author: yyqiang
 * @Copyright: Copyright (c) 浙江日报
 * @date: 2022/11/29 10:20
 * @version: 1.0.0
 */
public enum CustomSqlMethod {

    /**
     * 删除
     */
    DELETE_AND_UPDATE_BY_ID("deleteAndUpdateById", "根据ID 选择修改数据", "<script>\nUPDATE %s %s WHERE %s=#{%s} %s\n</script>"),

    ;

    private final String method;
    private final String desc;
    private final String sql;

    CustomSqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return method;
    }

    public String getDesc() {
        return desc;
    }

    public String getSql() {
        return sql;
    }
    }
